package cn.zswltech.gruul.web.api.controller;

import cn.zswltech.gruul.xxljob.YunHuInfoSyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2024/2/23 10:50
 */
@RestController
@RequestMapping("/manual")
public class ManualController {

    @Autowired
    private YunHuInfoSyncService yunHuInfoSyncService;

    @PostMapping("/user/sync")
    public void userSync(){
        yunHuInfoSyncService.userSyncer();
    }

    @PostMapping("/org/sync")
    public void orgSync(){
        yunHuInfoSyncService.orgSyncer();
    }

}
